package com.wipz.eoa.iphone.costmanagement;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.wipz.eoa.iphone.BaseAction;

/**
 * 费用报销列表控制类
 * @author 张涛
 * @date 2012-2-10
 */

public class CostListAction extends BaseAction {
	
	private static final long serialVersionUID = 1L;
	private ICostListService costListService;
	private List list;
 
	public void setCostListService(ICostListService costListService) {
		this.costListService = costListService;
	}

	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}

	/**
	 * 查询所有
	 * author：张涛
	 * date：2012-3-8
	 * time：上午10:51:28
	 * return：String
	 */
	@SuppressWarnings("unchecked")
	public String list(){
		Map params = new HashMap();
		params.put("qBillCode", this.getRequest().getParameter("qBillCode"));
		params.put("qAPPLIER", this.getRequest().getParameter("qAPPLIER"));
		params.put("sort", this.getRequest().getParameter("sort"));
		params.put("order", this.getRequest().getParameter("order"));
		list = costListService.queryAll(params);
		return SUCCESS;
	}
	
}
